package com.magnificent.atlantis.client.data.task.planner.additional;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAttribute;
import java.util.Date;

/**
 * User: Babanin
 * Date: 12.03.2009
 * Time: 14:51:07
 */
@XmlRootElement(name = "comments")
public class Comment {
    private Date date;
    private String text;

    public Comment() {
    }

    public Comment(String text, Date date) {
        this.text = text;
        this.date = date;
    }

    @XmlAttribute()
    public String getText() {
        return text;
    }

    @XmlAttribute()
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String toString() {
        return "<html>";
    }
}